package cn.edu.lingnan.common;

import javax.servlet.http.HttpSession;

public class TimeKeep implements Runnable{
    private HttpSession session;

    public TimeKeep(HttpSession session) {
        this.session = session;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(60000);
            session.removeAttribute("email");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
